f = open(r"D:\foo.txt","r")

#f.write("Python是一个非常好的语言；\n是的，的确非常好!!\n")

for line in f:
    print(line,end="")
f.close()